package com.mt.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author Wang
 * @since 2020-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mt_film")
@ApiModel(value = "Film对象", description = "")
public class Film implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String filmName;

    private double averageScore;

    private String director;

    private String language;

    private String leadingRole;

    private String introduction;

    private Integer expectNum;

    @TableField(exist = false)
    private Integer isExpect;
    @TableField(exist = false)
    private Integer isWatched;

    @TableField(exist = false)
    private List<FilmTag> tags;

    @TableField(exist = false)
    private Integer type;

    @TableField(exist = false)
    private List<FilmComment> comments;

    @ApiModelProperty(value = "电影海报")
    private String poster;

    @ApiModelProperty(value = "时长(分钟)")
    private String duration;

    @ApiModelProperty(value = "上映时间")
   // @JsonFormat(pattern = "yyyy-MM-dd")
    private String releaseTime;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}
